<template>
	<view>
		<u-tabs :list="list4"></u-tabs>
		<view class="topSearch" style="margin-top: 20px;">
			<u--input class="search" shape="circle" prefixIcon="search" prefixIconStyle="font-size: 22px;color: #909399"
				placeholder="搜索职位名称、公司"></u--input>
		</view>
		<u-index-list :index-list="indexList">
			<template v-for="(item, index) in itemArr">
				<!-- #ifdef APP-NVUE -->
				<u-index-anchor :text="indexList[index]"></u-index-anchor>
				<!-- #endif -->
				<u-index-item>
					<!-- #ifndef APP-NVUE -->
					<u-index-anchor :text="indexList[index]"></u-index-anchor>
					<!-- #endif -->
					<view class="list-cell" v-for="(cell, index) in item">
						{{cell}}
					</view>
				</u-index-item>
			</template>
		</u-index-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {

				list4: [{
					name: '好友'
				}, {
					name: '新好友'
				}, {
					name: '加好友'
				}],
				indexList: ["A", "B", "C"],
				itemArr: [
					['列表A1', '列表A2', '列表A3'],
					['列表B1', '列表B2', '列表B3'],
					['列表C1', '列表C2', '列表C3'],
				]
			}
		},
		methods: {

		}
	}
</script>

<style>
	.list-cell {
		display: flex;
		box-sizing: border-box;
		width: 100%;
		padding: 10px 24rpx;
		overflow: hidden;
		color: #323233;
		font-size: 14px;
		line-height: 24px;
		background-color: #fff;
	}
</style>